package io.seata.samples.sc.tccat.consumer.feign;

import io.seata.samples.sc.tccat.api.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lenovo
 */
@FeignClient("sc-tccat-provider-db")
public interface ActionDbFeign {
    /**
     * 方法描述
     *
     * @param user
     * @return io.seata.samples.sc.tccat.api.model.User
     */
    @PostMapping("/user/saveOrUpdate")
    User saveOrUpdate(@RequestBody User user);
}
